package com.ruibang.glass.produce.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-11-17  09:46
 * @Description: TODO
 * @Version: 1.0
 */

@Data
@ApiModel
@TableName(value = "g_produce_monitor_data")
public class MonitorData implements Serializable {
    @ApiModelProperty("监测点id")
    private String monitorId;
    @ApiModelProperty("设备id")
    private String deviceId;
    @ApiModelProperty("采集时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime collectTime;
    @ApiModelProperty("数据")
    private double value;
}
